﻿#ifndef NON_STANDARD_UTILITY_H
#define NON_STANDARD_UTILITY_H

#include "math.h"
#include <QByteArray>
#include <QCoreApplication>
#include <QElapsedTimer>
#include <QTime>
#include <QTimer>

class Non_Standard_Utility {
public:
    static void radianCorrection( double* radian );
     static int ascii2Hex( char input );
    static char BCC( const QByteArray& order, int len );
    static char BCC( const QByteArray& order, int start, int len );
    static uchar CKS( const QByteArray& order, int len );
    static uchar CKS( const QByteArray& order, int start, int len );
    static QByteArray CRC16_ModBus( const QByteArray& order, int num );
    static QByteArray CRC16_X25( const QByteArray& order, int num );
    static QString QbyteArry2Qstring( const QByteArray& data );
    static void blockDelayMs( int ms );
    static void delayMs( const int& mSec );

private:
    Non_Standard_Utility();
};

#endif  // NON_STANDARD_UTILITY_H
